<div class="wrapper wrapper-content" ng-controller="dirctorMainControl as vm">

  <div class="row">
    <div class="col-lg-12">
      <div class="ibox float-e-margins">

        <div class="ibox-title">
          <h5>请输入查询条件</h5>
          <div ibox-tools="" class="ng-scope">
            <div dropdown="" class="ibox-tools dropdown">
              <a ng-click="showhide()"> <i class="fa fa-chevron-up"></i></a>
            </div>
          </div>
        </div>

        <div class="ibox-content">
          <div class="row">

            <div class="col-md-4">
              <div class="form-group">
                <label for="image_patientname" class="control-label">患者姓名</label>
                <input type="text" id="image_patientname" class="form-control" data-placement="top"
                       data-original-title="" placeholder="" ng-model="search.name">
              </div>
            </div>
            <div class="col-md-4">
              <div class="form-group">
                <label for="image_patientname" class="control-label">电话</label>
                <input type="text" id="image_patient2name" class="form-control" data-placement="top"
                       data-original-title="" placeholder="" ng-model="search.phoneNum">
              </div>
            </div>
            <div class="col-md-4">
              <div class="form-group">
                <label for="image_patientname" class="control-label">病案号</label>
                <input type="text" class="form-control" data-placement="top"
                       data-original-title="" placeholder="" ng-model="search.caseNum">
              </div>
            </div>
            <!--<div class="col-md-3">-->
            <!--<div class="form-group">-->
            <!--<label for="image_patientname" class="control-label">主治医生</label>-->
            <!--<input type="text"  class="form-control" data-placement="top"-->
            <!--data-original-title="" placeholder="" ng-model="search.doctor">-->
            <!--</div>-->
            <!--</div>-->
          </div>

        </div>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="col-lg-12">
      <div class="ibox float-e-margins">
        <div class="ibox-title">
          <h5>
            用户列表
            <!--<small>查看就诊人员信息</small>-->
          </h5>
          <div ibox-tools></div>
        </div>
        <div class="ibox-content">

          <table class="footable table table-stripped toggle-arrow-tiny" id="mainTable" data-page-size="8" my-footable>
            <thead>
            <tr>
              <th>头像</th>
              <th>姓名</th>
              <th>性别</th>
              <th>身份证</th>
              <th>电话</th>
              <th>病案号</th>
              <th>医保号</th>
              <th>费别</th>
              <th>部件</th>
            </tr>
            </thead>
            <tbody>

            <tr ng-repeat="person in persons|filter:{name:search.name,phoneNum:search.phoneNum,
            doctor:search.doctor,caseNum:search.caseNum}">
              <td>
                <img src="assets/images/common/defaultHeader01.png" class="patient-image">
              </td>
              <td>{{person.name}}</td>
              <td>{{person.gender|chooseSex}}</td>
              <td>{{person.IDcard}}</td>
              <td>{{person.phoneNum}}</td>
              <td ng-bind="person.caseNum"></td>
              <td ng-bind="person.insuranceNum"></td>
              <td ng-bind="person.payType|payType"></td>
              <td ng-bind="person.diseasePart | diseasePart"></td>
            </tr>
            </tbody>
            <tfoot>
            <tr>
              <td colspan="50">
                <ul class="pagination pull-right"></ul>
              </td>
            </tr>
            </tfoot>
          </table>

        </div>
      </div>
    </div>
  </div>
</div>
